const App = getApp()
Page({
  data: {
    list:[],
    nomore: false,
  },
  onLoad: function (options) {

  },
  onReady: function () {

  },
  onShow: function () {
    let that = this
    that.list()
  },

  list() {
    let that = this
    App.api.$http({
      url: 'draw.Active/detail',
      method: 'Post',
      data: {}
    }, {}).then(res => {
      that.setData({
        list:res.data.active.myList.data
      })
    })
  },

  revise(e){
    let that=this
    let id=e.currentTarget.dataset.id
    App.api.$http({
      url: 'draw.Record/chekcRecord',
      method: 'Post',
      data: {
        record_id:id
      }
    }, {}).then(res => {
      App.api.$showSuccess(res.msg)
      that.list()
    })
  },
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})